package Animals;

public class Canoidea extends Animal{      //犬类
    private String  smell;
    public Canoidea(){

    }
    public Canoidea( String name,String color,int age,String shout){
        super(name,color,age,shout);
    }
    public void CommomCharacteristic(String smell  ){
        this.smell=smell;
        System.out.println(this.getName()+"嗅觉"+this.getSmell());
    }

    public String getSmell() {
        return smell;
    }

    public void setSmell(String smell) {
        this.smell = smell;
    }

    public static void main(String[]args){
        Canoidea  dog=new Canoidea();
        dog.setName("dog");
        dog.setSmell("灵敏");
        dog.setAge(5);
        dog.setColor("黑");
        dog.setShout("汪汪");
        Canoidea wolf=new Canoidea("wolf","灰",7,"嗷呜");
        wolf.Message();
        wolf.CommomCharacteristic("well");
    }
}
